package cn.edu.wfit.modules.directionmanagement.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.util.List;

/**
 * 在线IDE配置类
 */
@Configuration
@ConfigurationProperties(prefix = "online-ide")
public class OnlineIdeConfig {
    /**
     * 代码执行超时时间（秒）
     */
    private int executionTimeout = 30;

    /**
     * 支持的编程语言列表
     */
    private List<String> supportedLanguages;

    public int getExecutionTimeout() {
        return executionTimeout;
    }

    public void setExecutionTimeout(int executionTimeout) {
        this.executionTimeout = executionTimeout;
    }

    public List<String> getSupportedLanguages() {
        return supportedLanguages;
    }

    public void setSupportedLanguages(List<String> supportedLanguages) {
        this.supportedLanguages = supportedLanguages;
    }
}